<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>H5签名插件</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script type="text/javascript" src="jq-signature.js"></script>
    <script type="text/javascript" src="signature-fun.js"></script>
    <link rel="stylesheet" href="signature-css.css">
    <style>
    *{margin:0px;padding: 0px;}
    </style>
</head>
<body>

<div style="line-height:80px;text-align: center;">H5签名示例</div>


<!--签名区域 Begin-->
<div class="szktor-signature-box">
    <p>本人签名(点击图片可重签)：</p>
    <div id="signature-result" data-imgurl=""></div>
</div>
<!--签名区域 End-->




<!--以下代码无用-->
<div style="margin-top:30px;padding:10px;text-align: center;">
   <button type="button" style="padding:5px 8px;" onclick="alert(getSignatureImgUrl());">显示签名后的Base图片路径</button>
</div>

<div style="margin-top:30px;padding:10px;">
   <p>1.签名成功，图片地址是Base64编码的图片。</p>
   <br/>
   <p>2.获取已经签名的图片Jq方法：$('#signature-result').data('imgurl')或JS方法：getSignatureImgUrl()。</p>
</div>



</body>
</html>